import 'package:json_annotation/json_annotation.dart'; 
  
part 'qi_niu_upload_model.g.dart';


@JsonSerializable()
  class QiNiuUploadModel extends Object {

  @JsonKey(name: 'code')
  int code;

  @JsonKey(name: 'data')
  Data data;

  @JsonKey(name: 'message')
  String message;

  QiNiuUploadModel(this.code,this.data,this.message,);

  factory QiNiuUploadModel.fromJson(Map<String, dynamic> srcJson) => _$QiNiuUploadModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$QiNiuUploadModelToJson(this);

}

  
@JsonSerializable()
  class Data extends Object {

  @JsonKey(name: 'key')
  String key;

  @JsonKey(name: 'thumbnail')
  String thumbnail;

  @JsonKey(name: 'url')
  String url;

  Data(this.key,this.thumbnail,this.url,);

  factory Data.fromJson(Map<String, dynamic> srcJson) => _$DataFromJson(srcJson);

  Map<String, dynamic> toJson() => _$DataToJson(this);

}

  
